package com.stedu.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PeiJian {
    private Integer partId;
    private String partCode;
    private String partName;

    private String spec;

    private String unit;

    private String category;

    private Integer minStock;

    private Integer maxStock;
    private Integer stock;
    // 入库记录信息
    private Long inId;
    private LocalDate inDate;
    private Integer inQty;
    private String source;

    // 出库记录信息
    private Long outId;
    private LocalDate outDate;
    private Integer outQty;
    private String usageDept;
    private String usageProject;
    private String month;
    // 新增属性（驼峰命名，对应 SQL 中的 total_in_qty 和 total_out_qty）
    private Integer totalInQty; // 对应 SQL 中的 total_in_qty
    private Integer totalOutQty; // 对应 SQL 中的 total_out_qty
}
